package com.esd.crm.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class Product implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3168927933178789584L;

	private String name;

	private Integer id;

	private String ordernumber;

	private Integer customerid;

	private String product;

	private String specification;

	private String thickness;

	private String texture;

	private String color;

	private String number;

	private BigDecimal unit;

	private BigDecimal amout;

	private Date createtime;

	private Integer createuser;

	private Date updatetime;

	private Integer updateuser;

	private String remark;

	public String getThickness() {
		return thickness;
	}

	public void setThickness(String thickness) {
		this.thickness = thickness;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCustomerid() {
		return customerid;
	}

	public void setCustomerid(Integer customerid) {
		this.customerid = customerid;
	}

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product == null ? null : product.trim();
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification == null ? null : specification.trim();
	}

	public String getTexture() {
		return texture;
	}

	public void setTexture(String texture) {
		this.texture = texture == null ? null : texture.trim();
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color == null ? null : color.trim();
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public BigDecimal getUnit() {
		return unit;
	}

	public void setUnit(BigDecimal unit) {
		this.unit = unit;
	}

	public BigDecimal getAmout() {
		return amout;
	}

	public String getAmoutStr() {
		return amout.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
	}

	public void setAmout(BigDecimal amout) {
		this.amout = amout;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getCreateuser() {
		return createuser;
	}

	public String getCreatetimeStr() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
		sdf.setTimeZone(TimeZone.getTimeZone("GMT+0"));
		String s = sdf.format(createtime);
		return s;
	}

	public void setCreateuser(Integer createuser) {
		this.createuser = createuser;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public Integer getUpdateuser() {
		return updateuser;
	}

	public void setUpdateuser(Integer updateuser) {
		this.updateuser = updateuser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public String getOrdernumber() {
		return ordernumber;
	}

	public void setOrdernumber(String ordernumber) {
		this.ordernumber = ordernumber;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Product [name=" + name + ", id=" + id + ", ordernumber=" + ordernumber + ", customerid=" + customerid + ", product=" + product + ", specification=" + specification + ", texture="
				+ texture + ", color=" + color + ", number=" + number + ", unit=" + unit + ", amout=" + amout + ", createtime=" + createtime + ", createuser=" + createuser + ", updatetime="
				+ updatetime + ", updateuser=" + updateuser + ", remark=" + remark + "]";
	}

}